/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.sirh.bean;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.validation.constraints.NotNull;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Ing.Raymond
 */
@Entity
@Table(name = "_pase_empleado")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "PaseEmpleado.findAll", query = "SELECT p FROM PaseEmpleado p"),
    @NamedQuery(name = "PaseEmpleado.findById", query = "SELECT p FROM PaseEmpleado p WHERE p.id = :id"),
    @NamedQuery(name = "PaseEmpleado.findByCodIdentidad", query = "SELECT p FROM PaseEmpleado p WHERE p.codIdentidad = :codIdentidad"),
    @NamedQuery(name = "PaseEmpleado.findByFecha", query = "SELECT p FROM PaseEmpleado p WHERE p.fecha = :fecha"),
    @NamedQuery(name = "PaseEmpleado.findByHoraSalidad", query = "SELECT p FROM PaseEmpleado p WHERE p.horaSalidad = :horaSalidad"),
    @NamedQuery(name = "PaseEmpleado.findByHoraEntrada", query = "SELECT p FROM PaseEmpleado p WHERE p.horaEntrada = :horaEntrada"),
    @NamedQuery(name = "PaseEmpleado.findBySucursal", query = "SELECT p FROM PaseEmpleado p WHERE p.sucursal = :sucursal"),
    @NamedQuery(name = "PaseEmpleado.findBySuperv", query = "SELECT p FROM PaseEmpleado p WHERE p.superv = :superv")})
public class PaseEmpleado implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @NotNull
    @Column(name = "id")
    private Integer id;
    @Column(name = "cod_identidad")
    private Integer codIdentidad;
    @Column(name = "fecha")
    @Temporal(TemporalType.DATE)
    private Date fecha;
    @Column(name = "hora_salidad")
    @Temporal(TemporalType.TIME)
    private Date horaSalidad;
    @Column(name = "hora_entrada")
    @Temporal(TemporalType.TIME)
    private Date horaEntrada;
    @Column(name = "sucursal")
    private Integer sucursal;
    @Column(name = "superv")
    private Integer superv;

    public PaseEmpleado() {
    }

    public PaseEmpleado(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCodIdentidad() {
        return codIdentidad;
    }

    public void setCodIdentidad(Integer codIdentidad) {
        this.codIdentidad = codIdentidad;
    }

    public Date getFecha() {
        return fecha;
    }

    public void setFecha(Date fecha) {
        this.fecha = fecha;
    }

    public Date getHoraSalidad() {
        return horaSalidad;
    }

    public void setHoraSalidad(Date horaSalidad) {
        this.horaSalidad = horaSalidad;
    }

    public Date getHoraEntrada() {
        return horaEntrada;
    }

    public void setHoraEntrada(Date horaEntrada) {
        this.horaEntrada = horaEntrada;
    }

    public Integer getSucursal() {
        return sucursal;
    }

    public void setSucursal(Integer sucursal) {
        this.sucursal = sucursal;
    }

    public Integer getSuperv() {
        return superv;
    }

    public void setSuperv(Integer superv) {
        this.superv = superv;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof PaseEmpleado)) {
            return false;
        }
        PaseEmpleado other = (PaseEmpleado) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.sirh.bean.PaseEmpleado[ id=" + id + " ]";
    }
    
}
